const express = require('express')
const router = express.Router()
const getVdataData = require('../../core/vdata/getVdataData')

router.get('/', (req, res) => {
	res.send({
		msg: 'hornet-server-vdata',
	})
})

// 获取数据大屏首页数据
router.get('/data', function (req, res) {
	getVdataData(req).then(data => {
		res.send(data)
	})
})

module.exports = {
	name: 'vdata',
	router,
}
